package com.test1230am;

public class Test01 {
    public static void main(String[] args) {
        // (1)打印2个变量中的最大值
        int a = 2;
        int b = 3;
        int max = m(a,b);
        System.out.println("最大值为："+max);
    }
    public static int m(int a,int b){
        return a>b?a:b;
    }
}
